<html>

	<head>
	
		<script type="text/javascript" src="underscore-core.js"></script>
		
		<script type="text/javascript">
		
			window.onload = function(){
				_.getXml('sample-xml/books.xml', function(xmlDoc){
					var doc = new XMLObject(xmlDoc);
					
					alert(doc._object.xml);
					
					//var t = '';
					//for(var i in doc){
					//	t += i + '=' + doc[i] + '<br />';
					//}
					
					//document.getElementById('testDiv').innerHTML = t;

					alert(doc.search('book')._object.xml);
				});
			};
		
		</script>
	
	</head>

	<body>

		<div id="testDiv"></div>
	
	</body>
	
</html>